﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using WebInterface;

// For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860

namespace WebAppHappyNewYear.Controllers
{
    public class IocUserController : Controller
    {
        private readonly IIocUserService _iocUserService;

        public IocUserController(IIocUserService iocUserService)
        {
            _iocUserService = iocUserService;
        }


        public IActionResult Index()
        {
            return View(_iocUserService.GetUsers());
        }


        public IActionResult GetUser(int id)
        {
            return View(_iocUserService.GetUser(id));
        }
    }
}
